import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home'

Vue.use(VueRouter)

const routes = [{
  path:"/",
  redirect:"/home"
},
  {
    path: '/home',
    name: 'Home',
    component: Home
  },
  {
    path: '/cates',
    name: 'Cates',
    component: () => import( '../views/Cates')
  },
  {
    path: '/cart',
    name: 'Cart',
    component: () => import( '../views/Cart')
  },
  {
    path: '/details',
    name: 'Details',
    component: () => import( '../views/Details')
  },
  {
    path: '/mine',
    name: 'Mine',
    component: () => import( '../views/Mine')
  }
  
]

const router = new VueRouter({
  routes
})

export default router
